using System;
using System.Drawing;
using System.Drawing.Drawing2D;
using OpenComposite.Base.Designer;

namespace OpenComposite.EII.Designer.SCA
{
	public class ReferenceConnectorSymbol : Connector
	{
		#region Initialization
		public ReferenceConnectorSymbol()
		{
			init();
		}
		private void init()
		{
			this.BeginUpdate();

			//this.Name = "referenceConnectorSymbol" + GetCount(typeof(ReferenceConnectorSymbol));
			this.Text = "Reference";

			this.NameTextBox.Visible = false;

			this.MinimumSize = new Size(25, 15);
			this.Size = new System.Drawing.Size(25, 15);
			this.Font = new Font(FontFamily.GenericSerif, 12, FontStyle.Bold);

			this.Border = BorderType.SimpleArrowRight;
			this.BorderColor = Color.Black;
			this.BorderWidth = 1;

			//this.BackColor = Color.FromArgb(204, 153, 255);
			this.BackColor = Color.YellowGreen;
			this.BackColor2 = Color.White;
			this.BackLinearGradientMode = LinearGradientMode.ForwardDiagonal;
			this.BackBrushMode = BackgroundBrushMode.LinearGradient;

			//_format = new StringFormat(StringFormat.GenericDefault);
			//_format.Alignment = StringAlignment.Center;
			//_format.LineAlignment = StringAlignment.Center;

			this.EndUpdate();
		}
		#endregion

		#region Public Members

		#region Properties (Overrided)
		public override bool CanFocused
		{
			get
			{
				return false;
			}
		}
		public override bool CanMove
		{
			get
			{
				return false;
			}
		}
		public override bool CanResize
		{
			get
			{
				return false;
			}
		}
		public override bool CanSelect
		{
			get
			{
				return false;
			}
		}
		public override bool NoClip
		{
			get
			{
				return true;
			}
		}
		#endregion

		#region Methods (Overrided)
		public override void Dispose()
		{
			//dispose(_format);

			base.Dispose();
		}

		public override void PaintBackground(System.Windows.Forms.PaintEventArgs pe)
		{
			base.PaintBackground(pe);
		}
		public override void Paint(System.Windows.Forms.PaintEventArgs pe)
		{
			base.Paint(pe);
		}
		#endregion

		#endregion

		#region Private Members

		#region Variables
		//private StringFormat _format;
		#endregion

		#endregion
	}
}
